package com.yang.train.business.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 缘友一世
 * date 2024-02-14-15:37
 */
@RestController
public class TestController {

    @SentinelResource("hello")
    @GetMapping("/hello")
    public String hello() {
        return "hello business";
    }

    @SentinelResource("hello1")
    @GetMapping("/hello1")
    public String hello1() {
        return "hello business1";
    }


}
